<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
		<view class="info">
			<view class="" @click="phone">
				联系电话:15178649408 (点击拨打)
			</view>
			<view class="">
				联系地址: 地球
			</view>
		</view>
		<map class="map" :scale="scale" :longitude="longitude" :latitude="latitude" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 116.53111,
				latitude: 39.81861,	
				scale:13,
				markers:[
					{
					longitude: 116.53111,
					latitude: 39.81861,	
					iconPath:'../../static/hmlogo.png',
					width:30,
					height:30
					}
				]
			}
		},
		methods: {
          phone(){
			  uni.makePhoneCall({
			  	phoneNumber:'15178649408'
			  })
		  }
		}
	}
</script>

<style lang="scss">
	.contact {
		.img {
			width: 750rpx;
			height: 320rpx;
		}

		.info {
			padding: 10rpx 20rpx;
			font-size: 30rpx;

			view {
				line-height: 80rpx;
				border-bottom: 1px solid #eee;
			}
		}

		.map {
			width: 750rpx;
			height: 750rpx;
		}
	}
</style>
